import axios from '@/libs/api.request'

export const fetchPageList = params => {
  return axios.request({
    url: '/api/mode/getModeList',
    method: 'get',
    params
  })
}

export const fetchPageTplList = params => {
  return axios.request({
    url: '/api/template/getIndexTemplateList',
    method: 'get',
    params
  })
}

export const fetchPageData = ({ url, params }) => {
  return axios.request({
    url: `/api${url}`,
    method: 'get',
    params
  })
}
